package com.jokelandave.poc.server;

import org.restlet.Application;
import org.restlet.Restlet;
import org.restlet.resource.Directory;
import org.restlet.routing.Router;

public class TestServerApplication extends Application {
	
	@Override
	public Restlet createInboundRoot()
	{
		Router router = new Router(getContext());

		router.attachDefault(new Directory(getContext(), "war:///"));
		
		router.attach("/contacts/123", ContactServerResource.class);
		
		router.attach("/simple", SimpleServerResource.class);

		return router;
	}

}
